package cn.java68.g;
import java.util.*;
//花园
public class Gardon {
    private String name,addr;
    private List<Object> flowers=new ArrayList<>();
    //职务和姓名
    private Map<String,String>workers=new HashMap<>();

    public void setName(String name) {
        this.name = name;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public void setFlowers(List<Object> flowers) {
        this.flowers = flowers;
    }

    public void setWorkers(Map<String, String> workers) {
        this.workers = workers;
    }

    public void show(){
        System.out.println("这个花园叫:"+name+",在"+addr);
        System.out.println("培育有:"+flowers);
        System.out.println("工人有:"+workers);
    }
}
